package com.wyq.new_springboot.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class Myaspect {
    @Pointcut("execution(public * com.wyq.new_springboot.dao..*.*(..))")
    void get1(){

    }
    @Around("get1()")
    public void set(ProceedingJoinPoint p) throws Throwable {
        System.out.println("before========");
        Object proceed = p.proceed();
        System.out.println("after=======123");
//        return proceed;
    }
}
